﻿public class Computer {
	CPU cpu;
	CEMS cems;
	CHardDisk chd;
	public void setCpu(CPU cpu) {
		this.cpu = cpu;
	}
	public void setCems(CEMS cems) {
		this.cems = cems;
	}
	public void setChd(CHardDisk chd) {
		this.chd = chd;
	}
	public void print(){
		System.out.println("CPU的品牌是："+cpu.getBrand()+",主频是："+cpu.getZhu()+"\n硬盘是"+cems.getEms()+"\n内存容量是："+chd.chd()+"");
	}
}